home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / card_6429.txt < prev    next >
Text File  |  1990-04-17  |  10KB  |  441 lines

  1. -- card: 6429 from stack: in
  2. -- bmap block id: 8032
  3. -- flags: 0000
  4. -- background id: 18894
  5. -- name: TerminalCloseUp
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global env,sol,holder2
  9.   hide message
  10.   put empty into card field "Explainer"
  11.   put empty into card field "Choice"
  12.   put empty into card field "Category"
  13.   put empty into fld "Tell"
  14.   put empty into cd fld "Network"
  15.   put env into cd fld "CPU"
  16.   --engine begin
  17.   get card field (env && sol) of card "Mac Grid"
  18.   put empty into holder2
  19.   repeat with i = 1 to the number of lines of it
  20.     if item 2 of line i of it <> empty then
  21.       put character 1 to 29 of line i of it & return after holder2
  22.     end if
  23.   end repeat
  24.   if holder2 is empty then
  25.     put "No" && env && sol && "solutions installed in this version" into card fld "Explainer"
  26.     exit openCard
  27.   end if
  28.   repeat with i = 1 to the number of lines of holder2
  29.     put item 2 of line i of holder2 & return after card field "Explainer"
  30.   end repeat
  31. end openCard
  32.  
  33. on closeCard
  34.   put empty into fld "Tell"
  35.   put "Reads:" & return into cd fld "Reads"
  36.   put "Writes:" & return into cd fld "Writes"
  37.   set hilite of cd btn id 20 to false
  38.   set hilite of cd btn id 19 to false
  39. end closeCard
  40.  
  41.  
  42. -- part 17 (button)
  43. -- low flags: 00
  44. -- high flags: 0000
  45. -- rect: left=168 top=247 right=303 bottom=343
  46. -- title width / last selected line: 0
  47. -- icon id / first selected line: 0 / 0
  48. -- text alignment: 1
  49. -- font id: 0
  50. -- text size: 12
  51. -- style flags: 0
  52. -- line height: 16
  53. -- part name: mask
  54.  
  55.  
  56. -- part 2 (field)
  57. -- low flags: 01
  58. -- high flags: 0000
  59. -- rect: left=92 top=98 right=185 bottom=295
  60. -- title width / last selected line: 0
  61. -- icon id / first selected line: 0 / 0
  62. -- text alignment: 0
  63. -- font id: 3
  64. -- text size: 10
  65. -- style flags: 2048
  66. -- line height: 14
  67. -- part name: Explainer
  68. ----- HyperTalk script -----
  69. on mouseUp
  70.   global env,holder2,prodname2,Reads2,Writes2,Network2
  71.   set hilite of btn id 20 to false
  72.   put "Reads:" & return into cd fld "Reads"
  73.   put "Writes:" & return into cd fld "Writes"
  74.   put "Communication Method(s):" & return & return & "------------" & return into cd fld "Network"
  75.   put selectionAndHiliter() into cardline
  76.   put line cardline of me into prodname2
  77.   if env is "Digital" then
  78.     put "$" into promptType
  79.   else
  80.     if env is "PC" then
  81.       put ">" into promptType
  82.     else
  83.       put ":" into promptType
  84.     end if
  85.   end if
  86.   if prodname2 is empty
  87.   then
  88.   answer "Empty Choice!" with "Try Again"
  89.   exit mouseup
  90. end if
  91. if prodname2 is "No Solutions installed in this version." then
  92.   put empty into prodname2
  93.   exit mouseUp
  94. else
  95.   put promptType && prodname2 into cd fld "choice"
  96.   repeat with i = 1 to the number of lines of holder2
  97.     if item 2 of line i of holder2 is prodname2 then
  98.       put ":" && item 3 of line i of holder2 into cd fld "Category"
  99.       parseR2
  100.       put Reads2 after cd field "Reads"
  101.       parseW2
  102.       put Writes2 after cd field "Writes"
  103.       parseN2
  104.       put Network2 after cd field "Network"
  105.       exit repeat
  106.     end if
  107.   end repeat
  108. end if
  109. end mouseUP
  110.  
  111. on mouseEnter
  112.   changeCurs 6069
  113.   put "Products Field" & return & "click to select a product" into fld "Tell"
  114. end mouseEnter
  115.  
  116. on mouseLeave
  117.   changeCurs 69
  118.   put empty into fld "Tell"
  119. end mouseleave
  120.  
  121. On mouseDown
  122.   Global ClickSND
  123.   play ClickSND
  124. End mouseDown
  125.  
  126.  
  127. -- part 5 (field)
  128. -- low flags: 01
  129. -- high flags: 0000
  130. -- rect: left=89 top=246 right=264 bottom=294
  131. -- title width / last selected line: 0
  132. -- icon id / first selected line: 0 / 0
  133. -- text alignment: 0
  134. -- font id: 3
  135. -- text size: 10
  136. -- style flags: 2048
  137. -- line height: 14
  138. -- part name: Choice
  139. ----- HyperTalk script -----
  140. on mouseUp
  141.   get me
  142.   if it is empty
  143.   then
  144.   put "Please choose a product!" into fld "Tell"
  145.   exit mouseUp
  146. else
  147.   put char 3 to 28 of it into prod
  148.   set cursor to busy
  149.   visual effect dissolve
  150.   go card prod of stack "Products"
  151. end if
  152. end mouseUp
  153.  
  154. on mouseEnter
  155.   changeCurs 6069
  156.   put "Product Chosen Field" & return & "click for more info" into fld "Tell"
  157. end mouseEnter
  158.  
  159. on mouseLeave
  160.   changeCurs 69
  161.   put empty into fld "Tell"
  162. end mouseleave
  163.  
  164. On mouseDown
  165.   Global ClickSND
  166.   play ClickSND
  167. End mouseDown
  168.  
  169.  
  170. -- part 7 (field)
  171. -- low flags: 01
  172. -- high flags: 0000
  173. -- rect: left=90 top=60 right=97 bottom=411
  174. -- title width / last selected line: 0
  175. -- icon id / first selected line: 0 / 0
  176. -- text alignment: 0
  177. -- font id: 3
  178. -- text size: 12
  179. -- style flags: 10240
  180. -- line height: 16
  181. -- part name: header
  182.  
  183.  
  184. -- part 12 (field)
  185. -- low flags: 01
  186. -- high flags: 0000
  187. -- rect: left=289 top=247 right=266 bottom=431
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 0 / 0
  190. -- text alignment: 0
  191. -- font id: 3
  192. -- text size: 10
  193. -- style flags: 2048
  194. -- line height: 13
  195. -- part name: Category
  196. ----- HyperTalk script -----
  197. on mouseEnter
  198.   put "Category Field" & return & "category of product" into fld "Tell"
  199. end mouseEnter
  200.  
  201. on mouseLeave
  202.   put empty into fld "Tell"
  203. end mouseleave
  204.  
  205.  
  206. -- part 19 (button)
  207. -- low flags: 00
  208. -- high flags: A003
  209. -- rect: left=104 top=277 right=299 bottom=229
  210. -- title width / last selected line: 0
  211. -- icon id / first selected line: 0 / 0
  212. -- text alignment: 1
  213. -- font id: 0
  214. -- text size: 12
  215. -- style flags: 0
  216. -- line height: 16
  217. -- part name: Get Vendor Info
  218. ----- HyperTalk script -----
  219. on mouseUp
  220.   if cd field "Choice" is empty
  221.   then
  222.   put "Select a Product!" into fld "Tell"
  223.   exit mouseUp
  224. else
  225.   set cursor to busy
  226.   send mouseUp to cd fld "Choice"
  227. end if
  228. end mouseUp
  229.  
  230. On mouseDown
  231.   Global ClickSND
  232.   play ClickSND
  233. End mouseDown
  234.  
  235. on mouseEnter
  236.   changeCurs 6069
  237.   put "Go to Products Button" & return & "goes to the product card" into fld "Tell"
  238. end mouseEnter
  239.  
  240. on mouseLeave
  241.   changeCurs 69
  242.   put empty into fld "Tell"
  243. end mouseleave
  244.  
  245.  
  246.  
  247. -- part 20 (button)
  248. -- low flags: 00
  249. -- high flags: A003
  250. -- rect: left=283 top=277 right=299 bottom=410
  251. -- title width / last selected line: 0
  252. -- icon id / first selected line: 0 / 0
  253. -- text alignment: 1
  254. -- font id: 0
  255. -- text size: 12
  256. -- style flags: 0
  257. -- line height: 16
  258. -- part name: Go Back to Room
  259. ----- HyperTalk script -----
  260. on mouseUp
  261.   global env,theRoom
  262.   set lockscreen to true
  263.   set cursor to busy
  264.   go cd theRoom
  265.   unlock screen with dissolve
  266. end mouseUp
  267.  
  268. On mouseDown
  269.   Global ClickSND
  270.   play ClickSND
  271. End mouseDown
  272.  
  273. on mouseEnter
  274.   global env
  275.   changeCurs 6069
  276.   put "Back to Room Button" & return & "goes to the" && env && "Room" into fld "Tell"
  277. end mouseEnter
  278.  
  279. on mouseLeave
  280.   changeCurs 69
  281.   put empty into fld "Tell"
  282. end mouseleave
  283.  
  284.  
  285.  
  286. -- part 22 (field)
  287. -- low flags: 01
  288. -- high flags: 0000
  289. -- rect: left=91 top=196 right=247 bottom=240
  290. -- title width / last selected line: 0
  291. -- icon id / first selected line: 0 / 0
  292. -- text alignment: 0
  293. -- font id: 242
  294. -- text size: 9
  295. -- style flags: 10240
  296. -- line height: 12
  297. -- part name: Reads
  298. ----- HyperTalk script -----
  299. on mouseEnter
  300.   put "the file types the" & return & "application can open" into fld "Tell"
  301. end mouseEnter
  302. on mouseLeave
  303.   put empty into fld "Tell"
  304. end mouseleave
  305.  
  306.  
  307. -- part 24 (field)
  308. -- low flags: 01
  309. -- high flags: 0000
  310. -- rect: left=268 top=196 right=249 bottom=420
  311. -- title width / last selected line: 0
  312. -- icon id / first selected line: 0 / 0
  313. -- text alignment: 0
  314. -- font id: 242
  315. -- text size: 9
  316. -- style flags: 10240
  317. -- line height: 12
  318. -- part name: Writes
  319. ----- HyperTalk script -----
  320. on mouseEnter
  321.   put "the file types the" & return & "application can save" into fld "Tell"
  322. end mouseEnter
  323. on mouseLeave
  324.   put empty into fld "Tell"
  325. end mouseleave
  326.  
  327.  
  328. -- part 25 (field)
  329. -- low flags: 01
  330. -- high flags: 0000
  331. -- rect: left=303 top=98 right=184 bottom=420
  332. -- title width / last selected line: 0
  333. -- icon id / first selected line: 0 / 0
  334. -- text alignment: 0
  335. -- font id: 3
  336. -- text size: 10
  337. -- style flags: 2048
  338. -- line height: 14
  339. -- part name: Network
  340. ----- HyperTalk script -----
  341. on mouseEnter
  342.   put "Network Communication Method" into fld "Tell"
  343. end mouseEnter
  344.  
  345. on mouseLeave
  346.   put empty into fld "Tell"
  347. end mouseleave
  348.  
  349.  
  350. -- part 27 (field)
  351. -- low flags: 01
  352. -- high flags: 0000
  353. -- rect: left=91 top=41 right=60 bottom=218
  354. -- title width / last selected line: 0
  355. -- icon id / first selected line: 0 / 0
  356. -- text alignment: 0
  357. -- font id: 3
  358. -- text size: 12
  359. -- style flags: 2048
  360. -- line height: 16
  361. -- part name: CPU
  362.  
  363.  
  364. -- part 29 (field)
  365. -- low flags: 01
  366. -- high flags: 0000
  367. -- rect: left=12 top=0 right=30 bottom=211
  368. -- title width / last selected line: 0
  369. -- icon id / first selected line: 0 / 0
  370. -- text alignment: 0
  371. -- font id: 156
  372. -- text size: 18
  373. -- style flags: 2048
  374. -- line height: 24
  375. -- part name: FloorName
  376.  
  377.  
  378. -- part 30 (button)
  379. -- low flags: 00
  380. -- high flags: 0000
  381. -- rect: left=189 top=112 right=128 bottom=224
  382. -- title width / last selected line: 0
  383. -- icon id / first selected line: 0 / 0
  384. -- text alignment: 1
  385. -- font id: 0
  386. -- text size: 12
  387. -- style flags: 0
  388. -- line height: 16
  389. -- part name: explainerHiliter
  390. ----- HyperTalk script -----
  391. on mouseUp
  392.   --‚àÜ This is a dummy button required by the selectionAndHiliter routine
  393. end mouseUp
  394.  
  395.  
  396.  
  397. -- part contents for card part 7
  398. ----- text -----
  399. Click on a product for info & to configure Room
  400. ---------------------------------------------
  401.  
  402. -- part contents for card part 22
  403. ----- text -----
  404. Reads:
  405.  
  406.  
  407. -- part contents for card part 24
  408. ----- text -----
  409. Writes:
  410.  
  411.  
  412. -- part contents for card part 27
  413. ----- text -----
  414. Digital
  415.  
  416. -- part contents for card part 29
  417. ----- text -----
  418. Host Screen
  419.  
  420. -- part contents for card part 2
  421. ----- text -----
  422. 20/20
  423. DECdecision
  424. DECwrite for VMS
  425. WordPerfect 5.0 for the VAX/
  426.  
  427.  
  428. -- part contents for card part 25
  429. ----- text -----
  430. Communication Method(s):
  431.  
  432. ------------
  433.  
  434.  
  435. -- part contents for card part 5
  436. ----- text -----
  437. $ DECdecision
  438.  
  439. -- part contents for card part 12
  440. ----- text -----
  441. : Spreadsheet